<form style="padding-top:20px; padding-right:40px;" class="layui-form layui-form-pane operationForm">
    <input type="hidden" value="{$info.id}" name="id" />
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>父节点：</label>
        <div class="layui-input-block">
            <select name="parent_id" id="parent_id" lay-filter="parent_id" lay-verify="required" lay-search="" >
                <!--<option value="1">根节点</option>-->
                <option value="">直接选择或搜索选择</option>
                {volist name='tree' id='vo'}
                    <option value="{$vo.id}" {if $info.parent_id == $vo.id} selected=""{/if}> |— {$vo.name}({$vo.code})</option>
                    {volist name='vo["children"]' id='vi'}
                        <option value="{$vi.id}" {if $info.parent_id == $vi.id} selected=""{/if}> |—|— {$vi.name}({$vi.code})</option>
                        {volist name='vi["children"]' id='vj'}
                            <option value="{$vj.id}" {if $info.parent_id == $vj.id} selected=""{/if}> |—|—|— {$vj.name}({$vj.code})</option>
                        {/volist}
                    {/volist}
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>名称：</label>
        <div class="layui-input-inline">
            <input type="text" name="name" id="name" placeholder="请输入名称" value="{$info.name}" autocomplete="off" class="layui-input" lay-verify="required" >
        </div>
        <div class="layui-form-mid layui-word-aux">请输入操作的名称</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>编码：</label>
        <div class="layui-input-inline">
            <input type="text" name="code" id="code" placeholder="请输入编码" value="{$info.code}" autocomplete="off" class="layui-input" lay-verify="required" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>类型：</label>
        <div class="layui-input-block">
            <!--<input type="radio" name="type" value="m" title="模块" {if $info.type == 'm'} checked=""{/if}>-->
            <input type="radio" name="type" id="typeC" value="c" title="功能组"" {if $info.type == 'c'} checked=""{/if}>
            <input type="radio" name="type" id="typeM" value="a" title="功能"  {if !isset($info) || $info.type == 'a'} checked=""{/if} >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>状态：</label>

        <div class="layui-input-block">
            <select name="status" id="status">
                <option value="1" {if !isset($info) || $info.status=='1' }selected="selected" {/if}>正常 </option>
                <option value="2" {if $info.status=='2' }selected="selected" {/if}>停用 </option>
            </select> 
        </div> 
    </div> 
    <div class="layui-form-item">
        <label class="layui-form-label">注意：</label>
        <div class="layui-input-block">
            <div class="layui-form-mid layui-word-aux">1.如果是功能组，编码按照正常的大小写写法即可，如果是功能，一定要是小写。</div>
        </div>
    </div>
    {:zlserverToken()}
</form>
<script>
    layui.use('form', function(){
        var form = layui.form;
        form.render();   
    }); 
</script>